<?php /* Smarty version Smarty-3.0.7, created on 2011-07-14 17:42:32
         compiled from ".\templates\campania.tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:45264e1f54b8eaa6e8-58431509%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '353c7abf32cc62ad859c4b9ab7d2f6c19ac2fc0d' => 
    array (
      0 => '.\\templates\\campania.tpl.html',
      1 => 1310661640,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '45264e1f54b8eaa6e8-58431509',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<script language="javascript" type="text/javascript">
  tinyMCE.init({
     //mode : "textareas",
     mode : "exact",
     plugins : "layer,save,table,emotions,jfilebrowser,preview,xhtmlxtras",
     elements : "textarea_contenido",
     languaje : "es",
      // Theme options
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,jfilebrowser",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,table,layer",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        theme : "advanced"
  });
</script>
<div align="justify" style="font-size:12px; color:#222222; padding: 5px 150px 30px 150px;">
        
    <div style="border-bottom: 1px solid #DDD; padding: 8px 0px 0px 0px;">
        <h2 style="font-size:12px; color:#222222;"><?php echo $_smarty_tpl->getVariable('tituloprincipal')->value;?>
</h2>
    </div>
    
   <div>
   <form action="publicidad.php?do=<?php echo $_smarty_tpl->getVariable('dohacer')->value;?>
" method="post" enctype="multipart/form-data" name="frmcampania" id="campanias">
       <table  align="center" border="0" cellspacing="0" cellpadding="0" width="70%" class="small">
           <tbody>
            <tr>
                <td colspan="2" style="padding:10px 0px 10px 0px">
                   <div align="center">
                    <input title="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
 [Alt+S]" accesskey="S" class="save" type="submit" name="button" value="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
" style="width:100px" onclick="return( formvalidacion());">
                    <input title="Cancelar [Alt+X]" accesskey="X" class="cancel" type="button" name="button" value="Cancelar" style="width:100px" onclick="window.history.back()">
                   </div>
                </td>
            </tr>

            <tr>
                <td colspan="2" class="detailedViewHeader">
                    <b>Informaci&oacute;n Campa&ntilde;a</b>
                </td>
            </tr>

            <!-- Added this file to display the fields in Create Entity page based on ui types  -->
            <tr style="height:25px">

                <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red"></font>C&oacute;digo
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <input readonly="" name="codigo" style="border:1px solid #bababa; width:20%;" type="text" value="<?php echo $_smarty_tpl->getVariable('cam_cod')->value;?>
">
                </td>

            </tr>

            <tr style="height:25px">
                <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red"> * </font>T&iacute;tulo
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <textarea name="titulo" class="detailedViewTextBox" tabindex="" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" cols="70" rows="2"><?php echo utf8_encode($_smarty_tpl->getVariable('titulo')->value);?>
</textarea>
                    <!--<input size="130" type="text" name="titulo" tabindex="" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" style="width:90%;" value="<?php echo utf8_encode($_smarty_tpl->getVariable('titulo')->value);?>
">-->
                    
                </td>

            </tr>
    
           <tr style="height:25px">
               <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red"> * </font>Resum&eacute;n
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <textarea name="resumen"  class="detailedViewTextBox" tabindex="" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" cols="70" rows="2"><?php echo utf8_encode($_smarty_tpl->getVariable('resumen')->value);?>
</textarea>
                    <!--<input size="10" type="text" name="resumen" tabindex="" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" style="width:40%;" value="<?php echo utf8_encode($_smarty_tpl->getVariable('resumen')->value);?>
">-->
                </td>
           </tr>
           <tr style="height:25px">
                <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red">  </font>Fecha
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <input type="text" name="fecha" tabindex="" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" style="width:30%;" value="<?php echo $_smarty_tpl->getVariable('fecha')->value;?>
">
                </td>
           </tr>
           <tr style="height:25px">
               <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red">  </font>Hora
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <input type="text" name="hora" tabindex="" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" style="width:30%;" value="<?php echo $_smarty_tpl->getVariable('hora')->value;?>
">
                </td>
           </tr>
           <tr style="height:25px">
               <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red">  </font>P&uacute;blico Objetivo
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <input type="text" name="pubobjetivo" tabindex="" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" style="width:20%;" value="<?php echo $_smarty_tpl->getVariable('pubobjetivo')->value;?>
">
                </td>
           </tr>
           <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Estado Campa&ntilde;a
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                <select name="lstestado" tabindex="" class="small" style="width: 25%;">
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('estados')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('estadoactual')->value==$_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </td>
           </tr>
           <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Tipo Campa&ntilde;a
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                <select name="lsttipocampania" tabindex="" class="small" style="width: 25%;">
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('tiposcampanias')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('tipoactual')->value==$_smarty_tpl->getVariable('tiposcampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tip_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('tiposcampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tip_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('tiposcampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tip_descripcion']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('tiposcampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tip_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('tiposcampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tip_descripcion']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </td>
           </tr>
           <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Asignar Plantilla
                </td>

                <td  width="70%" align="left" class="dvtCellInfo">
                <select name="lstplantillas" tabindex="" class="small" style="width: 25%;">
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('listaplantillas')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('plantillaactual')->value==$_smarty_tpl->getVariable('listaplantillas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['pla_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listaplantillas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['pla_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('listaplantillas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['pla_nombre']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listaplantillas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['pla_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('listaplantillas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['pla_nombre']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </td>
           </tr>
           <tr style="height:20px">
               <td>&nbsp;</td>
           </tr>
           <tr>
               <td colspan="2" class="detailedViewHeader">
                   <b>Contenido de la Campa&ntilde;a</b>
                </td>
           </tr>
           <tr>
                <td colspan="2">
                    <textarea name="contenido" id="textarea_contenido" tabindex="" cols="90" rows="40"><?php echo $_smarty_tpl->getVariable('infocontenido')->value;?>
</textarea>
		</td>
           </tr>
           <tr style="height:20px">
               <td>&nbsp;</td>
           </tr>

           <tr>	
               <td colspan="2" class="detailedViewHeader">
                    <b>Informaci&oacute;n Adicional</b>
                </td>
           </tr>
            
           <tr style="height:25px">

               <td width="20%" class="dvtCellLabel" align="right">
                    <font color="red"></font>Descripci&oacute;n
                </td>
		
                <td colspan="2">
                    <textarea name="descripcion"  class="detailedViewTextBox" tabindex="" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" cols="90" rows="5"><?php echo utf8_encode($_smarty_tpl->getVariable('descripcion')->value);?>
</textarea>
		</td>
            </tr>
                           
            <tr tyle="height:25px"><td>&nbsp;</td>
            </tr>
           

            <tr>
		<td colspan="2" style="padding:10px 0px 10px 0px">
		<div align="center">
                    <input title="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
 [Alt+S]" accesskey="S" class="save" type="submit" name="button" value="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
" style="width:100px">
                    <input title="Cancelar [Alt+X]" accesskey="X" class="cancel" type="button" name="button" value="Cancelar" style="width:100px" onclick="window.history.back()">
		</div>
		</td>
            </tr>            
	</tbody>       
       </table>
    </form>
    </div>
   
</div>